home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / silo.lha / silo / Debug.h < prev    next >
C/C++ Source or Header  |  1993-08-08  |  389b  |  21 lines

  1. /* $Author: ecsv38 $ $Date: 90/08/21 14:46:21 $ $Revision: 1.1 $ */
  2. /* (c) S. Manoharan  sam@lfcs.edinburgh.ac.uk */
  3.  
  4. #ifndef Debug_H
  5. #define Debug_H
  6.  
  7. #include <std.h>
  8. #include <stream.h>
  9.  
  10. extern int debug_flag; /* global debug flag */
  11.  
  12. inline int
  13. debug_level(const int level)
  14. {
  15.    return ( ::debug_flag > 0 && ::debug_flag <= level );
  16. }
  17.  
  18. extern void freeStoreException();
  19.  
  20. #endif Debug_H
  21.